package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyReview;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyReviewMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyReview record);

    StrategyReview selectByPrimaryKey(Long id);

    List<StrategyReview> selectAll(Long sid);

    List<StrategyReview> selectForList(@Param("sid") Long sid, @Param("qo") QueryObject qo);

    int updateByPrimaryKey(StrategyReview record);

    void delSFav(Long sid);

    void remSRFollow(@Param("uid") Long uid, @Param("sid") Long sid);

    void addSFav(Long sid);

    void insSRFollow(@Param("uid") Long uid, @Param("sid") Long sid);

    StrategyReview getFavSRById(@Param("uid") Long uid, @Param("sid") Long sid);
}